<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script crossorigin src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>

<body>
    <div id="app">

    </div>
    <script type="text/babel">
        class App extends React.Component{
            constructor(props){
                super(props);
                this.state = {
                    lists:[
                        {id:1001,name:"html"},
                        {id:1002,name:"css"},
                        {id:1003,name:"javascript"}
                    ]
                }
            }
            render(){
                const ListItem =  this.state.lists.map(item=>{
                    return (<div key={item.id}>{item.name}</div>)
                })
                console.log(ListItem)
                 return (
                    //  <div>{this.state.lists.map((item)=>{
                    //      return <div>{item.name}</div>
                    //  })}</div>
                    <div>{ListItem}</div>
                 )
            }
        }
        ReactDOM.render(
           <App/>,
            document.getElementById("app")
        );
        /*
        new Vue({
            render: h => h(App),
        }).$mount('#app') 
         */
        /* 
        export default class App extends Vue {
             private value:boolean = true
        }
         */
    </script>
</body>

</html>